Algorithms for Problems on Maximum Density Segment

نویسندگان

  • Md. Shafiul Alam
  • Asish Mukhopadhyay
چکیده

Let A be a sequence of n ordered pairs of real numbers (ai, li) (i = 1, . . . , n) with li > 0, and L and U be two positive real numbers with 0 < L U . A segment, denoted by A[i, j], 1 i j n, of A is a consecutive subsequence of A between the indices i and j (i and j included). The length l[i, j], sum s[i, j] and density d[i, j] of a segment A[i, j] are l[i, j] = ∑j t=i lt, s[i, j] = ∑j t=i at and d[i, j] = s[i,j] l[i,j] respectively. A segment A[i, j] is feasible if L l[i, j] U . The lengthconstrained maximum density segment problem is to find a feasible segment of maximum density. We present a simple geometric algorithm for this problem for the uniform length case (li = 1 for all i), with time and space complexities in O(n) and O(U − L + 1) respectively. The k length-constrained maximum density segments problem is to find the k most dense length-constrained segments. For the uniform length case, we propose an algorithm for this problem with time complexity in O(min{nk, n lg(U − L+ 1) + k lg(U − L+ 2), n(U − L+ 1)}).

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Algorithms for the Problems of Length-Constrained Heaviest Segments

We present algorithms for length-constrained maximum sum segment and maximum density segment problems, in particular, and the problem of finding length-constrained heaviest segments, in general, for a sequence of real numbers. Given a sequence of n real numbers and two real parameters L and U (L 6 U), the maximum sum segment problem is to find a consecutive subsequence, called a segment, of len...

متن کامل

A Total Ratio of Vegetation Index (TRVI) for Shrubs Sparse Cover Delineating in Open Woodland

Persian juniper and Pistachio are grown in low density in the rangelands of North-East of Iran. These rangelands are populated by evergreen conifers, which are widespread and present at low-density and sparse shrub of pistachio in Iran, that are not only environmentally but also genetically essential as seed sources for pistachio improvement in orchards. Rangelands offer excellent opportunities...

متن کامل

Fast Algorithms for Finding Maximum-Density Segments of a Sequence with Applications to Bioinformatics

We study an abstract optimization problem arising from biomolecular sequence analysis. For a sequence A = 〈a1, a2, . . . , an〉 of real numbers, a segment S is a consecutive subsequence 〈ai, ai+1, . . . , aj〉. The width of S is j − i+ 1, while the density is ( ∑ i≤k≤j ak)/(j − i+ 1). The maximum-density segment problem takes A and two integers L and U as input and asks for a segment of A with th...

متن کامل

Longest Segment Problems

The following problem is considered: Given a predicate p on strings. Determine the longest segment of a given string that satisfies p. This paper is an investigation of algorithms solving this problem for various predicates. The predicates considered are expressed in simple functions like the size, the minimum, the maximum, the leftmost and the rightmost element of the segment. The algorithms a...

متن کامل

Geometric Algorithms for Private-Cache Chip Multiprocessors

We study techniques for obtaining efficient algorithms for geometric problems on private-cache chip multiprocessors. We show how to obtain optimal algorithms for interval stabbing counting, 1-D range counting, weighted 2-D dominance counting, and for computing 3-D maxima, 2-D lower envelopes, and 2-D convex hulls. These results are obtained by analyzing adaptations of either the PEM merge sort ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2016